package com.edz.dudumifi;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.edz.dudumifi.bean.MiFiDataEntity;
import com.edz.dudumifi.service.InitService;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = "MainActivity";

    private static final int MESSAGE_SUCCESS = 1;
    MiFiDataEntity miFiDataEntity;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Intent mainActivityIntent = new Intent(this, InitService.class);  // 要启动的服务
        mainActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startService(mainActivityIntent);
        Log.i(TAG, "启动初始化服务");
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}
